<{if $aCart.object.package}>
<{foreach from=$aCart.object.package item=package key=_obj_key}>
  <{if !$aCart.object.goods && $package.is_first == 'true'}>
    <table class="pro_list_cart_xu section" width="100%" border="0" cellspacing="0" cellpadding="0" class="ddqr_info" id="storeid_<{$package.store_id}>">
      <!--<col class="span-8 "></col>
      <col class="span-2 textcenter"></col>
      <col class="span-2"></col>
      <col class="span-3"></col>
      <col class="span-3"></col>
      <{if !$checkout}><col class="span-2"></col><{/if}>
      <{if $checkout}><col class="span-4"></col><{/if}>-->
      <thead>
        <tr>
          <th class="bl_none">
				<p class="goods_shop_info">
				<span class="cjm_logo"></span>
              <{if $checkout}>
                    <span class="pl_10 pr_10">店铺：<span class="lan"><{$package.store_name}></span></span>
                    <span class="pl_10 pr_10">商家：<span class="lan"><{$package.login_name}></span></span>
                    <!-- <td id="shipping_<{$package.store_id}>" class="textcenter storeShipping"></td> -->
                <{else}>
                    <span class="pl_10 pr_10">店铺：<span class="lan"><{$package.store_name}></span></span>
                    <span class="pl_10 pr_10">商家：<span class="lan"><{$package.login_name}></span></span>
             <{/if}>
			 <!-- <span class="yh_cart">满2100，减100。</span> -->
			 </p>
          </th>
          <th class="c_969696"><{t}>单价<{/t}></th>
          <th class="c_969696"><{t}>数量<{/t}></th>
          <th class="c_969696"><{t}>优惠方式<{/t}></th>
          <th class="c_969696"><{t}>小计（元）<{/t}></th>
          <!-- <th><{t}>积分<{/t}></th> -->
          <{if !$checkout}><th class="c_969696"><{t}>操作<{/t}></th><{/if}>
          <{if $checkout}><th class="c_969696"><{t}>配送方式<{/t}></th><{/if}>
        </tr>
      </thead>
      <tbody><{/if}>
    <{if !$aCart.object.goods || $goods.store_id == $package.store_id}>
    <tr chlid_id="del-<{$package.obj_ident}>" urlupdate="<{link app=b2c ctl='site_cart' act='update' arg0='package' arg1=$item.link_key}>" urlremove="<{link app=b2c ctl='site_cart' act='remove' arg0='package'}>" number="<{$package.package._store.real}>" g_name="<{$package.package.name}>" floatstore="0" buy_price="<{$package.package.price}>" buy_store="<{$package.quantity}>" buy_store_id="<{$package.store_id}>">
      <td>
        <div class='cart-product-img goodpic spmc_l' isrc="<{$package.package.image|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" ghref='<{link app=package ctl=site_package act="index" arg0=$package.package.id}>'>
          <img src='<{$res_url}>/images/loading.gif'/>
        </div>
        <div class="spmc_r">
          <a target="_blank" class="item_title" href="<{link app=package ctl=site_package act=index arg0=$package.package.id}>"><{$package.package.name}></a>
          <span></span>
        </div>
      </td>
      <td class="goods_price textcenter" >
        <p class="now_price"><{$package.package.price|cur_odr}></p> 
      </td>
      <td class="textcenter">
        <{if !$checkout}>
        <div class="Numinput ma numadjust-arr">
          <span class="numadjust decrease"></span>
          <input type="text" min="0" numtype="int" name="modify_quantity[<{$package.obj_ident}>][quantity]" size="3" value="<{$package.quantity}>" onchange="if(Cart)Cart.ItemNumUpdate(this,this.value,event);"/>
          <span class="numadjust increase"></span>
        </div>
        <p class="t" style="display:none">(<{t}>需要备货<{/t}>)</p>
        <{else}>
        <{$package.quantity}>
        <{/if}>
      </td>
      <td class="textcenter" >
        <span class="cx_cart">捆绑促销</span>
      </td>
      <td class="goods_price textcenter buy_price xj_p" ><{$package.package.price*$package.quantity|cur_odr}></td>
      <{if !$checkout}> 
      <td>
        <ul class="cart-coll-ul">
          <li><a class="CartNav_del delItem btn-bj-hover "><i class="has-icon"> <img src='<{$env.app.res_url}>/bundle/delecate.gif' /></i><span class="delItem"><{t}>删除<{/t}></span></a></li></ul>
      </td>
      <{else if $package.is_first == 'true'}>
      <td id="shipping_<{$package.store_id}>" class="textcenter storeShipping"></td>
      <{else}>
      <td></td>
      <{/if}>
    </tr>
    <{foreach from=$package.obj_items item=pgoods}>
    <tr class="del-<{$package.obj_ident}>">
      <td>
        <div class="horizontal-m" style="margin-left:50px;">
          <div class="cart-product-img goodpic" style="width:52px;height:52px;" isrc="<{$pgoods.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" ghref="<{link app=b2c ctl=site_product arg0=$pgoods.goods_id }>">
            <img src='<{$res_url}>/loading.gif'/>
          </div>
          <div class="cart-giftname goods-main">
            <div class="goodinfo">
              <h3>
                <a target="_blank" class="item_title" href="<{link app=b2c ctl=site_product arg0=$pgoods.goods_id }>"><{$pgoods.name}></a>
                <br/><span><{$pgoods.spec_info}></span>
              </h3>
            </div>
          </div>
        </div>
      </td>
      <td class="cart-goodsprice point textcenter"><{$pgoods.price.price|cur_odr}></td>
      <td align="center"><input type="hidden" name="modify_quantity[<{$package.obj_ident}>][package][<{$package.package.id}>][<{$pgoods.goods_id}>][quantity]"></td>
      <td class="itemTotal font-red" align="center">捆绑商品</td>
      <td class="itemTotal font-red" align="center"> 0 </td>
      <td align="center">  </td>
    </tr>
    <{/foreach}>
    <{/if}>
    <{if !$aCart.object.goods && $package.is_last == 'true'}>
    <{if $checkout}>
    </tbody>
       </table>
       <table width="100%" border="0" cellspacing="0" cellpadding="0" class="cart_checkout_order section">
       <tbody>
    <tr class="goods_bj">
        <td colspan="6" id="store_<{$package.store_id}>" style="border:none;padding:15px 10px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <{assign var='store_id' value=$package.store_id}>
                <tr>
                    <td class="bb_none">补充说明：<input type="text" class="width_500" name="shipping[<{$package.store_id}>][memo]" style="height: 22px" /></td>
                    <td class="bb_none fr">店铺优惠： 
                    <select onchange="userCoupons(this,<{$package.store_id}>)">
                        <option value="no">--不使用优惠券--</option>
                        <{foreach from=$coupon_lists.$store_id item=list_coupon key=key}>
                            <{if $coupon.$store_id.coupon==$list_coupon.memc_code}>
                            <option value="<{$list_coupon.memc_code}>" selected><{$list_coupon.memc_code}></option>
                            <{else}>
                            <option value="<{$list_coupon.memc_code}>"><{$list_coupon.memc_code}></option>
                            <{/if}>
                        <{/foreach}>
                    </select><em class="red1">-<{$discount.$store_id|cur_odr}></em></td>
                </tr>
				<tr style="display:none;">
				<td class="bb_none"></td>
				<td class="bb_none fr">物流保价：<em class="font_16 red1"><{$store_protect.$store_id}></em></td>
				</tr>
				<tr style="display:<{if $discount.$store_id}>''<{else}>none<{/if}>;">
				<td class="bb_none"></td>
				<td class="bb_none fr">优惠金额：<em class="font_16 red1"><{$discount.$store_id}></em></td>
			</tr>
                <tr>
                    
                    <td class="bb_none"></td>
                    <td class="bb_none fr">店铺合计（含运费）：<em class="font_16 red1"><{if ($aCart.subtotal_price_store.$store_id-$discount.$store_id) > 0  }><{($aCart.subtotal_price_store.$store_id-$discount.$store_id)|cur_odr}><{else}><{0|cur_odr}><{/if}></em></td>
                </tr>
                <tr>
                    <td class="bb_none"></td>
                    <!-- <td class="bb_none fr">满288元，免运费</td> -->
                </tr>
            </table>
        </td>
    </tr>
    <{/if}>
    </tbody>
  </table>
  <{/if}>
<{/foreach}>
<{/if}>